package fr.chrysalis.ui.assets
{
	import flash.display.MovieClip;

	public class SWFAsset extends Asset implements IAsset
	{
		/**
		 * Reférence de classe de document du swf 
		 */
		private var assetClass:Class;
		
		public function SWFAsset(swfDocumentClass:Class)
		{
			this.assetClass = swfDocumentClass;
		}
		
		override public function get():MovieClip {
			return new this.assetClass() as MovieClip;
		}
		
		public function toString():String {
			return '[SWFAsset assetClass : ' + this.assetClass + ']';
		}
		
	}
}